package us.wili.dev.model.base;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import us.wili.dev.common.model.BaseModelWithId;

public class BaseRota extends BaseModelWithId implements Serializable {
    @ApiModelProperty(value="商品id")
    private Long docid;

    @ApiModelProperty(value="图片地址")
    private String imagesrc;

    public Long getDocid() {
        return docid;
    }

    public void setDocid(Long docid) {
        this.docid = docid;
    }

    public String getImagesrc() {
        return imagesrc;
    }

    public void setImagesrc(String imagesrc) {
        this.imagesrc = imagesrc == null ? null : imagesrc.trim();
    }

    public void copyPropertiesFrom(BaseRota source) {
        this.setDocid(source.getDocid());
        this.setImagesrc(source.getImagesrc());
    }

    public void copyAndIgnoreNullFrom(BaseRota source) {
        if (source.getDocid() != null) {
            this.setDocid(source.getDocid());
        }
        if (source.getImagesrc() != null) {
            this.setImagesrc(source.getImagesrc());
        }
    }
}